'use strict';

function collect_max_number(collection) {
  let result = [];
  let arr=collection.sort((a,b)=>b-a);
  result.push(arr[0]);
  console.log(result);
  return result;
  //在这里写入代码
}
collect_max_number([1,2,3,4,5]);

module.exports = collect_max_number;
